/**  
 * @Title: UnitService.java
 * @Package com.xzit.tmms.service.unit
 * @Description: TODO
 * @author 董亮亮
 * @date 2016年6月23日 上午8:35:01
 * @version V1.0  
 */
package com.xzit.tmms.service.unit;

import java.util.List;
import java.util.Map;

import com.xzit.tmms.bean.unit.Class;
import com.xzit.tmms.bean.unit.Unit;
import com.xzit.tmms.common.exception.ServiceException;
import com.xzit.tmms.common.page.Page;

/**
 * @ClassName: UnitService
 * @Description: TODO
 * @author 秦冲
 * @date 2016年6月23日 上午8:35:01
 */
public interface UnitService {
	public void addClass(Class clazz) throws ServiceException;

	public Page<Map<String, Object>> queryClass(Page<Map<String, Object>> page) throws ServiceException;

	public void deleteClass(Integer classId) throws ServiceException;

	public Class getClassById(Integer classId) throws ServiceException;

	public void updateClass(Class clazz) throws ServiceException;


	public List<Map<String, Object>> getUnitList() throws ServiceException;

	public List<Map<String, Object>> getClassList() throws ServiceException;
	
	public void addUnit(Unit unit) throws ServiceException;
	
	public Page<Map<String, Object>> queryUnit(Page<Map<String, Object>> page) throws ServiceException;

	public void deleteUnit(Integer unitId) throws ServiceException;

	public Unit getUnitById(Integer unitId) throws ServiceException;

	public void updateUnit(Unit unit) throws ServiceException;

}
